package com.jinly.ryder.manage.web.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jinly.ryder.manage.service.model.DeployStatus;
import com.jinly.ryder.manage.service.model.EnvType;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 部署实例
 */
@Data
public class AppInstanceVO {
    /**
     * 实例ID
     */
    private Integer id;

    /**
     * 实例名称
     */
    private String name;

    /**
     * 应用名称
     */
    private String appName;

    /**
     * 环境类型
     */
    private EnvType envType;

    /**
     * 分组名称
     */
    private String deployGroupName;

    /**
     * 主机
     */
    private String host;

    /**
     * 端口
     */
    private Integer port;

    /**
     * 部署状态 待发布，发布中，发布成功，发布失败
     */
    private DeployStatus deployStatus;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime created;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updated;
}
